package com.wang.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wang.pojo.TbTask;
import com.wang.service.TbTaskService;
import com.wang.mapper.TbTaskMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 *任务
 */
@Service
public class TbTaskServiceImpl extends ServiceImpl<TbTaskMapper, TbTask>
    implements TbTaskService{

    @Resource
    private  TbTaskMapper tbTaskMapper;

    /*
    * 根据中间表的taskid获取任务
    * */
    @Override
    public  TbTask gettbtask(Integer taskId){

        TbTask tbTasks = tbTaskMapper.selectById(taskId);
       return  tbTasks;
    }




}




